﻿<%@ Import Namespace="APMS.WebSite.Models.ViewData" %>
<%@ Import Namespace="APMS.WebSite.Common" %>

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MainNav.ascx.cs" Inherits="APMS.WebSite.Views.Shared.UserControls.MainNav" %>

<% if (ViewData.Model != null) { %>

<ul id="mainnav">
	<li><a href="/Project/Overview/<%=ViewData.Model.ProjectID%>" <% if(ViewData.Model.CurrentMenu == MainNavItemType.Overview) Response.Write("class=\"current\""); %>>Overview</a></li>
	<%--<li><%=Html.ActionLink<ProjectController>(x => x.Overview(ViewData.Model.ProjectID), "Overview")%></li>--%>
	<li><a href="/InProject/<%=ViewData.Model.ProjectID%>/Message/List" <% if(ViewData.Model.CurrentMenu == MainNavItemType.Message) Response.Write("class=\"current\""); %>>Messages</a></li>
	<li><a href="/InProject/<%=ViewData.Model.ProjectID%>/Todo/List" <% if(ViewData.Model.CurrentMenu == MainNavItemType.ToDo) Response.Write("class=\"current\""); %>>To-Do</a></li>
	<li><a href="/InProject/<%=ViewData.Model.ProjectID%>/Writeboard/List" <% if(ViewData.Model.CurrentMenu == MainNavItemType.Writeboard) Response.Write("class=\"current\""); %>>Writeboards</a></li>
	<li><a href="/InProject/<%=ViewData.Model.ProjectID%>/Chat/List" <% if(ViewData.Model.CurrentMenu == MainNavItemType.Chat) Response.Write("class=\"current\""); %>>Chat</a></li>
</ul>

<% } %>